import { GET, POST } from '@/util/Axios.js'
/**
 * @param {Object} user
 */
async function IsAdmin(user) {
    try {
        let res = await GET('/base/isAdmin', { phone: user.phone })
        return res
    } catch (error) {
        return Promise.reject(error)
    }
}

/**
 * 
 */
async function hadRights(menuname, rightscode) {
    try {
        GET('')
    } catch (error) {

    }
}



export {
    IsAdmin
}